package com.zjuee.base.model.common.waster.dir;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.zjuee.base.model.Description;
import com.zjuee.base.valid.Insert;
import com.zjuee.base.valid.Update;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * 固废大类别信息表
 *
 * @author wu liang
 * @since 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@TableName("bc_solid_class")
public class SolidBClass extends Description {

	/**固废大类代码*/
	@NotBlank(message = "bsbCode can't be empty", groups = {Insert.class, Update.class})
	@TableField(value = "BSC_CODE")
	private String bsbCode;

	/*固废大类名称*/
	@NotBlank(message = "bsbName can't be empty", groups = {Insert.class, Update.class})
	@TableField(value = "BSC_NAME")
	private String bsbName;

	/*备注*/
	@JsonInclude(JsonInclude.Include.NON_NULL)
	@TableField(value = "BSC_REMARK")
	private String bsbRemark;

	/*创建人*/
	@JsonInclude(JsonInclude.Include.NON_NULL)
	@TableField(value = "BSC_CREATOR")
	private String bsbCreator;

	/*创建时间*/
	@JsonInclude(JsonInclude.Include.NON_NULL)
	@TableField(value = "BSC_CREATE_TIME")
	private Date bsbCreateTime;

	/*修改人*/
	@JsonInclude(JsonInclude.Include.NON_NULL)
	@TableField(value = "BSC_MODIFIER")
	private String bsbModifier;

	/*修改时间*/
	@JsonInclude(JsonInclude.Include.NON_NULL)
	@TableField(value = "BSC_MODIFIED_TIME")
	private Date bsbModifiedTime;


}
